'''
427、定义一个函数实现整数的幂运算，用以计算x的n次方。
'''
def mult(x,n):
    outcome = 1
    for i in range(n):
        outcome = outcome * x
    return outcome

x = int(input())
n = int(input())
print(mult(x,n))